@extends('host.common.common')
@section('head')



    <script src="/assets/b2b/js/pageConfig.js"></script>
    <script type="text/javascript" src="/assets/b2b/js/libs/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="/assets/b2b/js/libs/underscore-min.js"></script>
    <script type="text/javascript" src="/assets/b2b/js/libs/jquery.paging.min.js"></script>
    <script type="text/javascript" src="/assets/b2b/js/libs/page/template-util.js"></script>

    @stop
    @section('body')

            <!-- top_test -->
    <div id="top_test"></div>

    <!-- web_logo_search -->
    <div id="web_logo_search"></div>

    <!-- comm_nav -->
    <div id="comm_nav"></div>

    <div class="com-w mt20">
        <div class="look-shopping-cart ">
            <div class="shopping-cart-top pay-orders">
                <div class="cart-top-left confirm-consignee">
                    <span class="cart-bg" style="background-position: 384px -95px"></span>
                    <span class="f20 lh90">订单提交成功</span>
                </div>
                <div class="cart-top-right pay-order">
                    <div class="top-right-logo"></div>
                </div>
            </div>
            <div class="pay-top2">
                <div class="fl clearfix pay-top2-l wb40">
                    <div class="fr pay-bg-img"></div>
                </div>
                <div class="fl pay-top2-r wb60 ">
                    <div class="f24 c-000 wb100 mt60 ml50">提交订单成功！等待供应商物流报价。</div>
                    <div class="wb100 f14 c-666 mt20 ml50">供应商提供物流报价后采购商即可通过商家中心订单管理进行订单支付。</div>
                </div>
            </div>
            <div class="c-yer lh32">
                <?php
                $i = 0;
                foreach ($orderInfo as $info) {
                    $i++;
                }
                    if($i > 1){
                        echo '注：由于您的商品由不同商家发出，此单将分为'.$i.'个不同子订单配送！';
                    }

                ?>
            </div>
            <div class="pay-top3 wb100 clearfix">

                <div class="head">
                    <ul class="clearfix">
                        <li class="wb30">订单号</li>
                        <li class="wb30">支付方式</li>
                        <li class="wb40">订单商品金额</li>
                    </ul>
                </div>
                <div class="pay-top3-main">
                    @foreach($orderInfo as $order)
                        <ul class="clearfix">
                            <li class="wb30 f14 b002"><a
                                        href="{{ route('account.purchaser.order.detail', [$order->order_code]) }}">{{$order->order_code}}</a>
                            </li>
                            <li class="wb30 f14 c-666">{{$order->pay_type}}</li>
                            <li class="wb40 f18 b002">￥{{$order->total_amount}}</li>
                        </ul>
                    @endforeach
                </div>
            </div>

            <div class="sure-btn tc mt40 mb40">
                <a href="{{route('host')}}" class="f16 c-666 mr40">返回平台首页</a>
                <a class="btn btn-important btn-w160x48 lh36"
                   href="{{  Auth::check()?Auth::user()->class == 2 ? route('account.purchaser.order.index'):route('account.provider.order.index'):'' }}">查看我的订单</a>
                <a class="btn btn-important btn-w160x48 lh36 ml10" href="{{route('merchant.index')}}">
                    进入商家中心
                </a>
            </div>
        </div>
    </div>
    <!-- foot_nav -->
    <div id="foot_nav"></div>
    <div id="bottom_main"></div>

    <script type="text/javascript">
        $(function () {

            commTemplUtil.initPage();
        })
    </script>

@stop

